import request from '@/utils/request'

// 查询逆变器列表
export function listNibianqi(query) {
  return request({
    url: '/ruoyi-yuce/nibianqi/list',
    method: 'get',
    params: query
  })
}

// 查询逆变器详细
export function getNibianqi(id) {
  return request({
    url: '/ruoyi-yuce/nibianqi/' + id,
    method: 'get'
  })
}

// 新增逆变器
export function addNibianqi(data) {
  return request({
    url: '/ruoyi-yuce/nibianqi',
    method: 'post',
    data: data
  })
}

// 修改逆变器
export function updateNibianqi(data) {
  return request({
    url: '/ruoyi-yuce/nibianqi',
    method: 'put',
    data: data
  })
}

// 删除逆变器
export function delNibianqi(id) {
  return request({
    url: '/ruoyi-yuce/nibianqi/' + id,
    method: 'delete'
  })
}
